/*
** StockDB
**
** Copyright (C) 2012 - ? doublegsoft
**
** This program is free software: you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation, either version 3 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef __PROCESS_H__
#define __PROCESS_H__

#define BUF_SIZE 4096

#define ERR_NO         0
#define ERR_PROTOCOL  -1

/*!
** It's a thread function to process client request with socket file
** descriptor.
**
** @param[in] remote
**              client socket file descriptor
**
** @param[in] master
**              a pointer to all socket fd_set on server
**
** @param[in] buf
**              a pointer to all received data from client
**
** @param[in] size
**              buf size
*/
void *
stockdb_process_request(int remote, fd_set *master, char *buf, int size);

#endif /* __PROCESS_H__ */
